package Library.Events;

import java.awt.event.*;

/**
 *
 */
public class MoveEvent extends ActionEvent
{
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param fromLandID
     * @param toLandID
     */
    public MoveEvent(Object source, int id, String command, int fromLandID, int toLandID)
    {
	super(source, id, command);
	m_FromLandID = fromLandID;
	m_ToLandID = toLandID;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param modifiers
     * @param fromLandID
     * @param toLandID
     */
    public MoveEvent(Object source, int id, String command, int modifiers, int fromLandID, int toLandID)
    {
	super(source, id, command, modifiers);
	m_FromLandID = fromLandID;
	m_ToLandID = toLandID;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param when
     * @param modifiers
     * @param fromLandID
     * @param toLandID
     */
    public MoveEvent(Object source, int id, String command, long when, int modifiers, int fromLandID, int toLandID)
    {
	super(source, id, command, when, modifiers);
	m_FromLandID = fromLandID;
	m_ToLandID = toLandID;
    }
    
    private int m_FromLandID;
    /**
     *
     * @return
     */
    public int getFromLandID()
    {
	return m_FromLandID;
    }
    
    private int m_ToLandID;
    /**
     *
     * @return
     */
    public int getToLandID()
    {
	return m_ToLandID;
    }
}
